using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BHXH.LinqRepository
{
    public class NguoiTraLoiPVRepository : Repository<NguoiTraLoiPV>
    {
      
        public NguoiTraLoiPV GetById(Guid Id)
        {
            return dataContext.NguoiTraLoiPVs.Where(c=> c.ID == Id).FirstOrDefault();
        }
        public void InsertOne(NguoiTraLoiPV one)
        {
            one.ID = Guid.NewGuid();
           // Add(one);
            dataContext.NguoiTraLoiPVs.InsertOnSubmit(one);
        }
        public void EditOne(NguoiTraLoiPV one)
        {
            //dataContext.NguoiTraLoiPVs.Attach(one, true);
            //Update(one);
        }
    }
}
